package com.clubs.coding.model.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NewsReq {

    @NotNull(message = "标题不能为空")
    private String title;
    @NotNull(message = "分类不能为空")
    private String cate;

    private String image;

    private Date updateTime;

    private Date creationTime;
    @NotNull(message = "内容不能为空")
    private String content;
    private Integer newsId;

    private Integer showIndex;
    private Integer status;

}